Remove some struct layout assumptions in bool vectors.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jul 2012 17:26:43 +0000 (10:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jul 2012 17:26:43 +0000 (10:26 -0700)
commit08667a6e2c7fd383e671e7e127e8243a5089ade8
tree4c50b99527ee0b3fcaac9d25b83441bae2f5f007
parent8737aab8dafcea0d6607ca55cd71654a62adfc19
Remove some struct layout assumptions in bool vectors.

* alloc.c (bool_header_size): New constant.
(header_size, word_size): Move earlier, as they're now used earlier.
Use 'word_size' in a few more places, where it's appropriate.
(Fmake_bool_vector, sweep_vectors): Don't assume that there is no
padding before the data member of a bool vector.
(sweep_vectors): Use PSEUDOVECTOR_TYPEP, in an eassert, rather
than doing the check by hand with an abort ().
src/ChangeLog
src/alloc.c